Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

[release/3.0] Fix PlatformManifestProjectReference ordering to fix flakiness - #7436

Merged
dagood merged 1 commit into
dotnet:release/3.0from
dagood:fix-platformmanifest-flakiness-3.0
Jul 27, 2019
Merged

[release/3.0] Fix PlatformManifestProjectReference ordering to fix flakiness#7436
dagood merged 1 commit into
dotnet:release/3.0from
dagood:fix-platformmanifest-flakiness-3.0

Conversation

@dagood

@dagood dagood commented Jul 26, 2019

Copy link
Copy Markdown
Member

Props file import order meant OrderProjectReference Include="@(PlatformManifestProjectReference)" was being evaluated before PlatformManifestProjectReference was set. Solve this by moving the include to a new GetDefaultOrderProjectReferences target so the static prop order doesn't matter.

Fixes Windows job CI flakiness introduced with #7372.

An alternative would be to change where the PlatformManifestProjectReference is defined to put it before it's needed, but I find relying on static order makes the build harder to understand and debug, and less flexible.

Somehow this didn't affect the initial PR... a lot of (all?) other 3.0 PRs are currently hitting this issue in CI, though.

Props file import order meant OrderProjectReference Include="@(PlatformManifestProjectReference)" was being evaluated before PlatformManifestProjectReference was set. Solve this by moving the include to a new GetDefaultOrderProjectReferences target so the static prop order doesn't matter.
@dagood
dagood requested review from MichaelSimons and wtgodbe July 26, 2019 23:21
@dagood dagood self-assigned this Jul 26, 2019
@dagood

dagood commented Jul 27, 2019

Copy link
Copy Markdown
Member Author

Merging to unblock CI.

@dagood
dagood merged commit 6ab59df into dotnet:release/3.0 Jul 27, 2019
@dagood
dagood deleted the fix-platformmanifest-flakiness-3.0 branch July 27, 2019 00:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant